* print.c (float_to_string): Detect width overflow more reliably.
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 29 Aug 2011 19:14:47 +0000 (12:14 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 29 Aug 2011 19:14:47 +0000 (12:14 -0700)
commite81dd66921cf4ddf41765acf3d10a52631314dfd
treec1ef64ee8ba812d9694248e5e9c9aec29155555a
parent324cdcffeb11203c03bf5549bca395e43654a39e
* print.c (float_to_string): Detect width overflow more reliably.

(print_object): Make sprintf buffer a bit bigger, to avoid potential
buffer overrun.  Don't assume list length fits in 'int'.  Treat
print length of 0 as 0, not as infinity; to be consistent with other
uses of print length in this function.  Don't overflow print length
index.  Don't assume hash table size fits in 'long', or that
vectorlike size fits in 'unsigned long'.
src/ChangeLog
src/print.c